﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FactoryDeviceSystem.Controls
{
    public partial class ParamText : Label
    {
        public ParamText()
        {
            InitializeComponent();
        }

        private string paramValue = "0.00";

        public string ParamValue
        {
            get { return paramValue; }
            set 
            { 
                paramValue = value;
                this.Text = this.ParamValue + " " + this.Unit;
            }
        }

        private string unit = "KW";

        public string Unit
        {
            get { return unit; }
            set 
            { 
                unit = value;
                this.Text = this.ParamValue + " " + this.Unit;
            }
        }

    }
}
